package com.fqgj.sentry.biz.store.es.data;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Date;
import java.util.List;

public class Event {
    @JsonProperty("flow_no")
    private String flowNo;
    @JsonProperty("order_no")
    private String orderNo;
    @JsonProperty("user_no")
    private String userNo;
    @JsonProperty("merchant_id")
    private Short merchantId;
    @JsonProperty("app_id")
    private Short appId;
    @JsonProperty("event_id")
    private Short eventId;
    private Executor executor;
    @JsonProperty("policy_set_id")
    private Integer policySetId;
    @JsonProperty("type")
    private String type;


    @JsonProperty("apply_date")
    private Date applyDate;
    private String from;
    @JsonProperty("is_new")
    private Boolean newOrder;


    private Result result;
    private List<Rule> rules;
    private List<Grade> grades;
    @JsonProperty("created_at")
    private Date createdAt;

    public String getFlowNo() {
        return flowNo;
    }

    public Event setFlowNo(String flowNo) {
        this.flowNo = flowNo;
        return this;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public Event setOrderNo(String orderNo) {
        this.orderNo = orderNo;
        return this;
    }

    public String getUserNo() {
        return userNo;
    }

    public Event setUserNo(String userNo) {
        this.userNo = userNo;
        return this;
    }

    public Short getMerchantId() {
        return merchantId;
    }

    public Event setMerchantId(Short merchantId) {
        this.merchantId = merchantId;
        return this;
    }

    public Short getAppId() {
        return appId;
    }

    public Event setAppId(Short appId) {
        this.appId = appId;
        return this;
    }

    public Short getEventId() {
        return eventId;
    }

    public Event setEventId(Short eventId) {
        this.eventId = eventId;
        return this;
    }

    public Executor getExecutor() {
        return executor;
    }

    public Event setExecutor(Executor executor) {
        this.executor = executor;
        return this;
    }

    public Integer getPolicySetId() {
        return policySetId;
    }

    public Event setPolicySetId(Integer policySetId) {
        this.policySetId = policySetId;
        return this;
    }


    public Result getResult() {
        return result;
    }

    public Event setResult(Result result) {
        this.result = result;
        return this;
    }

    public Date getApplyDate() {
        return applyDate;
    }

    public Event setApplyDate(Date applyDate) {
        this.applyDate = applyDate;
        return this;
    }

    public String getFrom() {
        return from;
    }

    public Event setFrom(String from) {
        this.from = from;
        return this;
    }

    public Boolean getNewOrder() {
        return newOrder;
    }

    public Event setNewOrder(Boolean newOrder) {
        this.newOrder = newOrder;
        return this;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public Event setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
        return this;
    }

    public List<Rule> getRules() {
        return rules;
    }

    public Event setRules(List<Rule> rules) {
        this.rules = rules;
        return this;
    }

    public List<Grade> getGrades() {
        return grades;
    }

    public Event setGrades(List<Grade> grades) {
        this.grades = grades;
        return this;
    }

    public String getType() {
        return type;
    }

    public Event setType(String type) {
        this.type = type;
        return this;
    }
}
